﻿@using ZBJF.Warranty.BLL
@using ZBJF.Warranty.Common.Enums.InfoCollect
@using ZBJF.Warranty.Common.Enums.InsuranceOrder
@using ZBJF.Warranty.Common.Enums.InsuranceWarranty
@using ZBJF.Warranty.WebProvider
@using EnumHelper = ZBJF.Warranty.Common.Common.EnumHelper
@model ZBJF.Warranty.Model.InsuranceWarrantyRecord
@{
    ViewBag.Title = "维修中工单详情";
}
@section Header{
    @Scripts.Render("~/bundles/datatable")
    @Styles.Render("~/Content/datatable")
}
<ul id="myTab" class="nav nav-tabs">
    <li class="active">
        <a href="#workOrderInfo" data-toggle="tab">
            工单详细信息
        </a>
    </li>
    <li>
        <a href="#MaintainProcessing" data-toggle="tab">
            完成维修
        </a>
    </li>
</ul>
<div id="myTabContent" class="tab-content">
    <div class="tab-pane  fade in active" id="workOrderInfo">
        <h4>派单信息</h4>
        <table class="table table-responsive table-bordered table-hover">
            <tr>
                <th class="w120">工单号：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.WarrantyRecordNo)</td>
                <th class="w120">报案人：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.Reporter)</td>
            </tr>
            <tr>
                <th class="w120">报案人电话：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.ReporterPhone)</td>
                <th class="w120">报案人地址：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.AccidentAddress)</td>
            </tr>
            <tr>
                <th class="w120">保额：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.InsuranceOrder.InsuredAmount)</td>
                <th class="w120">维修类型：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.WarrantyMaintenanceTypeID)</td>
            </tr>
            <tr>
                <th class="w120">派单人：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.SortingCenterSendOrderUserID)</td>
                <th class="w120">派单网点：</th>
                <td class="w-p25">@Html.DisplayFor(o => o.ServiceProviderBranch.BranchName)</td>
            </tr>
        </table>
        <h4>
            需维修设备信息
        </h4>
        <table class="table table-responsive table-bordered table-hover">
            <tr>
                <th>设备品牌</th>
                <td>@Model.InsuranceOrder.ProductBrandName</td>
                <th>设备型号</th>
                <td>@Model.InsuranceOrder.ProductModelName</td>
            </tr>
            <tr>
                <th>需维修配件</th>
                <td>@Model.InsuranceOrder.ProductBrandName</td>
                <th>配件品质</th>
                <td>@Model.InsuranceOrder.ProductModelName</td>
            </tr>
            <tr>
                <th>需维修配件</th>
                <td colspan="3">@Model.InsuranceOrder.IMEI</td>
            </tr>
        </table>
        @RenderPage("~/Views/WorkOrderCommonInfo/AuditInfo.cshtml", new { type = "ShowResult", AuditProjectType = 0 })
    </div>
    <div class="tab-pane padding-10 fade in" id="MaintainProcessing">
        @RenderPage("MaintainProcessing.cshtml", new { id = Model.ID })
    </div>
</div>
